package com.uchengwang.ui.cm_ui.umsg.bean;

import android.text.TextUtils;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Table;
import com.uchengwang.functions.db.dbBean.DbBase;

import java.util.Arrays;
import java.util.List;

/**
 * Created by U城网 on 2017/12/15.
 */
@Table("WantChatBean")
public class WantChatBean extends DbBase {
    private String banReason;//封禁原因

    @Column("chatAvatar")
    private String chatAvatar;//享聊内头像
    private String chatDesc;//简介

    @Column("chatImgs")
    private String chatImgs;//图片集 用英文半角分号隔开' ; '

    @Column("chatName")
    private String chatName;//享聊内昵称

    @Column("chatSign")
    private String chatSign;//签名
    private String chatTopic;//聊天主题

    @Column("chatType")
    private int chatType;// 享聊类型 目前1
    private long createTime;//创建时间

    @Column("id")
    private long id;
    private boolean isActive;//是否打开享聊
    private boolean isBan;//是否被封禁

    @Column("isExamine")
    private int isExamine;//是否通过审核  -1=未通过 0=待审核 1=通过
    private String examineMsg;//审核信息
    private boolean isImgClear;// 是否需要模糊

    @Column("sex")
    private int sex;//0=女 1=男

    @Column("uid")
    private long uid;

    @Column("uniId")
    private long uniId;

    @Column("uniName")
    private String uniName;
    private int wantSex;

    @Column("isChat")
    private boolean isChat;// 是否聊过

    @Column("sendMsgTime")
    private long sendMsgTime;//给对方发送享聊消息的时间

    public long getSendMsgTime() {
        return sendMsgTime;
    }

    public void setSendMsgTime(long sendMsgTime) {
        this.sendMsgTime = sendMsgTime;
    }

    public List<String> getHeads(){
        if (!TextUtils.isEmpty(chatImgs)){
            List<String> urls = Arrays.asList(chatImgs.split(";"));
            return urls;
        }
        return null;
    }

    public boolean isChat() {
        return isChat;
    }

    public void setChat(boolean chat) {
        isChat = chat;
    }

    public String getUniName() {
        return uniName;
    }

    public void setUniName(String uniName) {
        this.uniName = uniName;
    }

    public String getBanReason() {
        return banReason;
    }

    public void setBanReason(String banReason) {
        this.banReason = banReason;
    }

    public String getChatAvatar() {
        return chatAvatar;
    }

    public void setChatAvatar(String chatAvatar) {
        this.chatAvatar = chatAvatar;
    }

    public String getChatDesc() {
        return chatDesc;
    }

    public void setChatDesc(String chatDesc) {
        this.chatDesc = chatDesc;
    }

    public String getChatImgs() {
        return chatImgs;
    }

    public void setChatImgs(String chatImgs) {
        this.chatImgs = chatImgs;
    }

    public String getChatName() {
        return chatName;
    }

    public void setChatName(String chatName) {
        this.chatName = chatName;
    }

    public String getChatSign() {
        return chatSign;
    }

    public void setChatSign(String chatSign) {
        this.chatSign = chatSign;
    }

    public String getChatTopic() {
        return chatTopic;
    }

    public void setChatTopic(String chatTopic) {
        this.chatTopic = chatTopic;
    }

    public int getChatType() {
        return chatType;
    }

    public void setChatType(int chatType) {
        this.chatType = chatType;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public boolean isBan() {
        return isBan;
    }

    public void setBan(boolean ban) {
        isBan = ban;
    }

    public int getIsExamine() {
        return isExamine;
    }

    public void setIsExamine(int isExamine) {
        this.isExamine = isExamine;
    }

    public String getExamineMsg() {
        return examineMsg;
    }

    public void setExamineMsg(String examineMsg) {
        this.examineMsg = examineMsg;
    }

    public boolean isImgClear() {
        return isImgClear;
    }

    public void setImgClear(boolean imgClear) {
        isImgClear = imgClear;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getUniId() {
        return uniId;
    }

    public void setUniId(long uniId) {
        this.uniId = uniId;
    }

    public int getWantSex() {
        return wantSex;
    }

    public void setWantSex(int wantSex) {
        this.wantSex = wantSex;
    }
}
